package com.obrempon.credit.market.ui.adapter

import androidx.recyclerview.widget.RecyclerView
import com.obrempon.credit.market.R
import com.obrempon.credit.market.utils.ObremponImageUtil
import com.obrempon.module.adapter.ObremponRecyclerViewAdapter
import com.obrempon.module.adapter.ObremponViewHolderHelper
import org.json.JSONObject

/**
 * ObremponCredit
 * @Author wwdeng
 * @CreateTime: 2025/3/26 14:28
 * @Annotation：
 */
class ObremponAuthStepWalletAccountCompleteApt(recyclerView: RecyclerView?) : ObremponRecyclerViewAdapter<JSONObject>(recyclerView, R.layout.obrempon_auth_step_wallet_account_submit_complete_item) {
    override fun setItemChildListener(helper: ObremponViewHolderHelper, viewType: Int) {
        helper.setItemChildClickListener(R.id.itemLayout) //点击Item
    }
    override fun fillData(helper: ObremponViewHolderHelper, position: Int, model: JSONObject) {
        helper.setText(R.id.walletTypeTitle,model.optString("walletDesc"))
        helper.setText(R.id.walletAccountMobile,"+" + model.optString("walletMobile"))
        val walletTypeLogo = helper.getImageView(R.id.walletTypeLogo)
        ObremponImageUtil.instance.loadImageUrl(mContext,walletTypeLogo,model.optString("walletLogo"), R.mipmap.obrempon_holder)
    }
}